/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.yuhanginfo.modules.sys.dao;

import java.util.List;

import com.yuhanginfo.common.persistence.CrudDao;
import com.yuhanginfo.common.persistence.annotation.MyBatisDao;
import com.yuhanginfo.modules.sys.entity.Orders;

/**
 * 订单管理DAO接口
 * @author yangs
 * @version 2017-09-18
 */
@MyBatisDao
public interface OrdersDao extends CrudDao<Orders> {

	Orders selectByCode(String code);

	List<Orders> assignSaleMan(Orders orders);
	List<Orders> selectImportOrder(Orders orders);
	void upSaleMan(Orders ord);

	List<Orders> handleOrderList(Orders orders);

	void upStatus(Orders orders);

	void updateMoney(Orders orders);

	List<Orders> abnormalOrderList(Orders orders);

	void updateHistoryState(Orders orders);

	void removeHistoryState(Orders orders);
	
	List<Orders> findOrdersChangeList(Orders orders);
	
	Orders getByCode(Orders orders);
	
	List<Orders> findOrdersChangeHistoryList(Orders orders);
	
	int getOrderChangeCode(String code);
	
	Orders getByChangeCode(Orders orders);

	List<Orders> myOrderList(Orders orders);
	
	List<Orders> findOrdersExchangeList(Orders orders);

	String findMaxCode(String now);

	List<Orders> selectByStoreCode(String code);
}